package com.zghl.service.impl;

import com.zghl.dao.SystemDao;
import com.zghl.pojo.System;
import com.zghl.pojo.vo.SystemVo;
import com.zghl.service.SystemService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @Author:wangbosen
 * @Date:2020/7/28 14:14
 * Description
 */
@Service
public class SystemServiceImpl implements SystemService {

    @Resource
    private SystemDao systemDao;

    @Override
    public List<SystemVo> systemList(Map<String, Object> param) {
        return systemDao.systemList(param);
    }

    @Override
    public List<System> List(Map<String, Object> param) {
        return systemDao.List(param);
    }

    @Override
    public Integer addBySystem(System system) {
        return systemDao.addBySystem(system);
    }

    @Override
    public Integer deleteBySystem(int Id) {
        return systemDao.deleteBySystem(Id);
    }

    @Override
    public Integer updateBySystem(System system) {
        return systemDao.updateBySystem(system);
    }
}
